package com.lagou.service.code.service.feign;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient("lagou-service-email")
@RequestMapping("/email")
public interface EmailServiceFeignClient {

    /**
     * 发送验证码到邮箱，true成功，false失败
     */
    @PostMapping("/{email}/{code}")
    Boolean send(@PathVariable String email, @PathVariable String code);
}
